<template>
  <view :style="themeColor">
    <view class="page">
      <view class="flex benben-position-layout flex flex-wrap align-center member_flex_0"
        :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
        <view class='flex flex-wrap align-center justify-between flex-sub member_fd0_0'>
          <view class='flex flex-wrap align-center member_fd0_0_c0' @tap.stop="handleJumpDiy" data-type="back"
            data-url="1">
            <text class='fu-iconfont2  member_fd0_0_c0_c0'>&#xE794;</text>
          </view>
          <view class='flex flex-wrap align-stretch justify-center'>
            <text class='member_fd0_0_c1_c0' v-if=" business=='11'">会员权益</text><text class='member_fd0_0_c1_c0'
              v-if=" business=='12'">业务介绍</text><text class='member_fd0_0_c1_c0' v-if=" business=='13'">农具社区</text><text
              class='member_fd0_0_c1_c0' v-if=" business=='14'">热门活动</text>
          </view>
          <view class='flex flex-wrap align-center justify-end member_fd0_0_c0'>
          </view>
        </view>

      </view>
      <view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout">
        <image class='member_fd1_0' lazy-load mode="aspectFill" :src='cateImage'></image>
      </view>

      <!---flex布局flex布局结束-->
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout" v-if=" business=='11'">
        <template v-for='(item,key0) in equityList'>
          <view class='flex flex-direction flex-wrap align-stretch member_fd2_0' @tap.stop="handleJumpDiy"
            data-type="navigateTo" :data-url="`/pages/homePages/memberDetail/memberDetail?type=${item.id}`" :key='key0'>
            <text class='member_fd2_0_c0'>{{item.title}}</text>
            <view class='flex align-center'>
              <image class='member_fd2_0_c1_c0' mode="aspectFill" :src='STATIC_URL+"32.png"'></image>
              <text class='member_fd2_0_c1_c1'>{{item.operationarticlecolumn_name}}</text>
            </view>
          </view>
        </template>
        <fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
          :listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
      </view>

      <!---flex布局flex布局结束-->
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout" v-if=" business=='12'">
        <template v-for='(item,key0) in equityList'>
          <view class='flex flex-direction flex-wrap align-stretch member_fd3_0' @tap.stop="handleJumpDiy"
            data-type="navigateTo" :data-url="`/pages/homePages/memberDetail/memberDetail?type=${item.id}`" :key='key0'>
            <text class='member_fd3_0_c0'>{{item.title}}</text>
            <view class='flex align-center'>
              <image class='member_fd3_0_c1_c0' mode="aspectFit" :src='STATIC_URL+"32.png"'></image>
              <text class='member_fd3_0_c1_c1'>{{item.operationarticlecolumn_name}}</text>
            </view>
          </view>
        </template>
        <fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
          :listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
      </view>

      <!---flex布局flex布局结束-->
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout" v-if=" business=='13'">
        <template v-for='(item,key0) in equityList'>
          <view class='flex flex-direction flex-wrap align-stretch member_fd4_0' @tap.stop="handleJumpDiy"
            data-type="navigateTo" :data-url="`/pages/homePages/memberDetail/memberDetail?type=${item.id}`" :key='key0'>
            <text class='member_fd4_0_c0'>{{item.title}}</text>
            <view class='flex align-center'>
              <image class='member_fd4_0_c1_c0' mode="aspectFit" :src='STATIC_URL+"32.png"'></image>
              <text class='member_fd4_0_c1_c1'>{{item.operationarticlecolumn_name}}</text>
            </view>
          </view>
        </template>
        <fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
          :listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
      </view>

      <!---flex布局flex布局结束-->
      <!---flex布局flex布局开始-->
      <view class="flex flex-direction flex-wrap align-stretch benben-flex-layout" v-if=" business=='14'">
        <template v-for='(item,key0) in equityList'>
          <view class='flex flex-direction flex-wrap align-stretch member_fd5_0' @tap.stop="handleJumpDiy"
            data-type="navigateTo" :data-url="`/pages/homePages/memberDetail/memberDetail?type=${item.id}`" :key='key0'>
            <text class='member_fd5_0_c0'>{{item.title}}</text>
            <view class='flex align-center'>
              <image class='member_fd5_0_c1_c0' mode="aspectFit" :src='STATIC_URL+"32.png"'></image>
              <text class='member_fd5_0_c1_c1'>{{item.operationarticlecolumn_name}}</text>
            </view>
          </view>
        </template>
        <fu-empty :pagingListLoadedAll="pagingListLoadedAll" :pagingListNoListData="pagingListNoListData"
          :listDataLength="listDataLength" :isLoadInit="isLoadInit"></fu-empty>
      </view>

      <!---flex布局flex布局结束-->


    </view>
  </view>
</template>
<script>
  import pagingList from '@/common/mixin/paging_list.js';
  import {
    validate
  } from '@/common/utils/validate.js'
  export default {
    components: {},
    mixins: [pagingList],

    data() {
      return {
        cateImage:'',
        "minixPagingListsApi": "",
        "pageingListApiMethod": "",
        "allowOnloadGetList": false,
        "equityList": [],
        "business": "11"
      };
    },
    computed: {
      themeColor() {
        return this.$store.getters.themeColor
      },

    },
    watch: {},
    onLoad(options) {
      let {
        business
      } = options
      if (business !== undefined) this.business = business
      this.getData()
      this.getarticleListFunc()
    },
    onUnload() {

    },
    onReady() {

    },
    onShow() {

    },
    onHide() {

    },
    onResize() {

    },
    onPullDownRefresh() {
      this.getarticleListFunc()
    },
    onReachBottom(e) {

    },
    onPageScroll(e) {

    },
    methods: {
      getData(){
        this.$api.post(global.apiUrls.post5d63befcb25d9,{
          category_id:this.business
        }).then(res=>{
          if(res.data.code==1){
            this.cateImage=res.data.data.cat_img
          }
        })
      },
      //获取文章列表
      getarticleListFunc() {
        this.minixPagingListsApi = global.apiUrls.post63a17eba97248;
        this.pageingListApiMethod = 'get';
        this.allowOnloadGetList = false;
        this.pagingListPostDataContent = {
          operationarticlecolumn_id: this.business
        }
        this.listData = [];
        this.equityList = this.listData;
        this.pagingListToggle();
      },
      pagingListPostData() {
        return this.pagingListPostDataContent
      }
    }
  };
</script>
<style lang="scss" scoped>
  .page {
    width: 100vw;
    overflow-x: hidden;
    min-height: calc(100vh - var(--window-bottom));
    background: #F8F8F8;
    background-size: 100% auto;
  }

  .member_flex_0 {
    background: #fff;
    width: 750rpx;
    height: 88rpx;
    overflow: hidden;
    z-index: 10;
    top: 0rpx;
    background-size: 100% auto !important;
  }

  .member_fd0_0_c1_c0 {
    font-size: 36rpx;
    font-weight: 500;
    color: #333;
    line-height: 88rpx;
  }

  .member_fd0_0_c0_c0 {
    font-size: 36rpx;
    color: #333;
  }

  .member_fd0_0_c0 {
    width: 120rpx;
  }

  .member_fd0_0 {
    padding: 0rpx 32rpx 0rpx 32rpx;
  }

  .member_fd1_0 {
    width: 750rpx;
    height: 320rpx;
  }

  .member_fd2_0_c1_c1 {
    color: #333333;
    font-size: 28rpx;
    font-weight: 400;
  }

  .member_fd2_0_c1_c0 {
    width: 200rpx;
    height: 200rpx;
    margin: 0rpx 22rpx 0rpx 0rpx;
  }

  .member_fd2_0_c0 {
    color: #333333;
    font-size: 32rpx;
    font-weight: 500;
    margin: 0rpx 0rpx 16rpx 0rpx;
  }

  .member_fd2_0 {
    background: #FFFFFF;
    border-radius: 16rpx 16rpx 16rpx 16rpx;
    margin: 24rpx 24rpx 0rpx 24rpx;
    padding: 32rpx 24rpx 32rpx 24rpx;
  }

  .member_fd3_0_c1_c1 {
    color: #333333;
    font-size: 28rpx;
    font-weight: 400;
  }

  .member_fd3_0_c1_c0 {
    width: 200rpx;
    height: 200rpx;
    margin: 0rpx 22rpx 0rpx 0rpx;
  }

  .member_fd3_0_c0 {
    color: #333333;
    font-size: 32rpx;
    font-weight: 500;
    margin: 0rpx 0rpx 16rpx 0rpx;
  }

  .member_fd3_0 {
    background: #FFFFFF;
    border-radius: 16rpx 16rpx 16rpx 16rpx;
    margin: 24rpx 24rpx 0rpx 24rpx;
    padding: 32rpx 24rpx 32rpx 24rpx;
  }

  .member_fd4_0_c1_c1 {
    color: #333333;
    font-size: 28rpx;
    font-weight: 400;
  }

  .member_fd4_0_c1_c0 {
    width: 200rpx;
    height: 200rpx;
    margin: 0rpx 22rpx 0rpx 0rpx;
  }

  .member_fd4_0_c0 {
    color: #333333;
    font-size: 32rpx;
    font-weight: 500;
    margin: 0rpx 0rpx 16rpx 0rpx;
  }

  .member_fd4_0 {
    background: #FFFFFF;
    border-radius: 16rpx 16rpx 16rpx 16rpx;
    margin: 24rpx 24rpx 0rpx 24rpx;
    padding: 32rpx 24rpx 32rpx 24rpx;
  }

  .member_fd5_0_c1_c1 {
    color: #333333;
    font-size: 28rpx;
    font-weight: 400;
  }

  .member_fd5_0_c1_c0 {
    width: 200rpx;
    height: 200rpx;
    margin: 0rpx 22rpx 0rpx 0rpx;
  }

  .member_fd5_0_c0 {
    color: #333333;
    font-size: 32rpx;
    font-weight: 500;
    margin: 0rpx 0rpx 16rpx 0rpx;
  }

  .member_fd5_0 {
    background: #FFFFFF;
    border-radius: 16rpx 16rpx 16rpx 16rpx;
    margin: 24rpx 24rpx 0rpx 24rpx;
    padding: 32rpx 24rpx 32rpx 24rpx;
  }
</style>
